#include "mMsgUndef.h"

#define BEGIN_MSG_NAMESPACE(NAMESPACE, START_INDEX) \
	namespace NAMESPACE { \

#define BEGIN_MSG(TYPE) \
	sMsg* s##TYPE::Copy() \
	{ \
	s##TYPE* newMsg = new s##TYPE(); \
	newMsg->msgTargetID = msgTargetID;

#define END_MSG() \
	return newMsg; \
	}

#define END_MSG_NAMESPACE() \
	}

#define MSG_FIELD(TYPE, NAME, VALUE) \
	newMsg->##NAME = NAME;